package com.itheima.testJDK8;

import java.time.LocalDateTime;

public class Test2JDK8Date {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);//2021-05-02T15:46:24.556842500

        LocalDateTime of = LocalDateTime.of(2021, 11, 11, 11, 11, 11);
        System.out.println(of);//2021-11-11T11:11:11
    }
}
